package com.mayikt.pay.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mayikt.pay.mapper.entity.PaymentTransaction;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface PaymentTransactionMapper extends BaseMapper<PaymentTransaction> {
    /**
     * /**通过paymentId 改变订单状态
     * @param orderId
     * @param status
     * @return
     */
    int updateStaByorderId(@Param("orderId") String orderId,@Param("status") int status);

    /**
     * 通过orderId查询订单信息
     * @param orderId
     * @return PaymentTransaction订单信息
     */
    PaymentTransaction selByOrderId(String orderId);
}
